<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/share/taglib.jsp" %>
<html>
<head>
<title>创建用户</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/vip.css" type="text/css">
<script language="JavaScript">
<!--
	//到指定的分页页面
	function topage(page){
		var form = document.forms[0];
		form.page.value=page;
		form.submit();
	}
	
	function actionEvent(methodname){
		var form = document.forms[0];
		if(validateIsSelect(form.all, form.productids)){
			form.action='<html:rewrite action="/control/product/manage"/>';
			form.method.value=methodname;
			form.submit();
		}else{
			alert("请选择要操作的记录");
		}
	}
	
	function allselect(allobj,items){
	    var state = allobj.checked;
	    if(items.length){
	    	for(var i=0;i<items.length;i++){
	    		if(!items[i].disabled) items[i].checked=state;
	    	}
	    }else{
	    	if(!items[i].disabled) items.checked=state;
	    }
	}
	/*
	 * 判断是否选择了记录
     */
	function validateIsSelect(allobj,items){
	    var state = allobj.checked;
	    if(items.length){
	    	for(var i=0;i<items.length;i++){
	    		if(items[i].checked) return true;
	    	}
	    }else{
	    	if(items.checked) return true;
	    }
	    return false;
	}
//-->
</script>
<SCRIPT language="javascript" src="${pageContext.request.contextPath }/js/FoshanRen.js"></SCRIPT>
</head>

<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0">
<form name="us" action="${pageContext.request.contextPath }/control/usermanage/manage-del.do" method="post">
<input type="hidden" name="page"/>
  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
    <tr ><td colspan="10"  bgcolor="6f8ac4" align="right">
    	<%@ include file="/WEB-INF/share/fenye.jsp" %>
   </td></tr>
    <tr>
      				<td width="8%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">ID</font>
						</div>
					</td>
					<td width="8%" nowrap bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">账号</font>
						</div>
					</td>
					<td width="8%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">状态</font>
						</div>
					</td>
					<td width="10%" nowrap bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">角色</font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">真实姓名</font>
						</div>
					</td>
					<td width="10%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">身份号码</font>
						</div>
					</td>
					<td width="8%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">手机</font>
						</div>
					</td>
					<td width="8%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">邮箱</font>
						</div>
					</td>
					<td width="8%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">QQ</font>
						</div>
					</td>
					<td width="12%" bgcolor="6f8ac4">
						<div align="center">
							<font color="#FFFFFF">操作</font>
						</div>
					</td>					
    </tr>
<!---------------------------LOOP START------------------------------>
<c:forEach items="${pageView.records}" var="user">
    <tr>
      <td bgcolor="f5f5f5">
						<div align="center">
							${user.id }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${user.name }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${user.flag }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${user.role.roleName }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${user.details.truename }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${user.details.identity }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${user.details.phone }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${user.details.email }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							${user.details.icq }
						</div>
					</td>
					<td bgcolor="f5f5f5">
						<div align="center">
							<a href="<s:url value="/control/usermanage/manage-canle.do"/>?id=${user.id }">复职</a>
						</div>
					</td>					
				</tr>
</c:forEach>
    <!----------------------LOOP END------------------------------->
  </table>
</form>
</body>
</html>